<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>AngularJS的过滤器使用</title>
	</head>

	<body>
		<div ng-app="" ng-init="books=[{language:'javascript', price:50},
                        {language:'java', price:30},
                        {language:'c++', price:70},
                        {language:'php', price:100},
                        {language:'book', price:100},
                        {language:'易语言', price:100},
                        {language:'html', price:20}]"
        >

			过滤：<input type="text" ng-model="book">

			<ul>
				<li ng-repeat="book in books | filter: {language:book} | orderBy: 'price'">
					{{ book.language | uppercase }} : {{book.price | currency}}
				</li>
			</ul>

		</div>
		<script src="http://cdn.gbtags.com/angular.js/1.2.20/angular.min.js"></script>
	</body>

</html>